<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>EHS中国信息管理系统</title>
	<load href="__PUBLIC__/Css/lwy2011.css" />
	<load href="__PUBLIC__/Css/common.css" />
    <script type="text/javascript" src="__ROOT__/Public/Js/jquery-1.5.0.min.js"></script>
    <script type="text/javascript" src="__ROOT__/Public/Js/core.js"></script>
	<script>
	function checkForm(){
   //alert('b');
   var flag=false;
   $(":checkbox").each(function () {
        if($(this).attr("checked")){
		  flag=true;
		  //break;
		  }
      });
   if(flag){
   document.listForm.submit();
   return false;
   }
   else {
     alert('未选择任何内容');
     return false;
   }
}
</script>
  </head>
  <body style="width:760px;margin:0 auto">
    
   <form action="__URL__/toRecommend" method="post" name="listForm">
   <input type="hidden" name="part_id" value="{$id}" />
   
   <if condition="$type eq 1">   
   <input type="hidden" name="type" value="1" />
  <table  border="1" align="center">
  <tr align="center">
    <td colspan="6" style="text-align:left"><span style="text-align:left;">操作:【<a href='' onclick="return checkForm();">添加选中内容到推荐位</a>】【<a href="__URL__/recommendList/id/{$id}">查看推荐位</a>】</span></td>
    </tr>
  <tr align="center">
    <th width="57" height="30">选择</td>
    <th width="219">标题</td>
    <th width="154">发布人</td>
    <th width="99">发布时间</td>
    <th width="78">是否保密</td>  
    
    <th width="113">操作
  </tr>
 
      <volist name="list" id="item">
     <tr><td><input name="ids[]"  type="checkbox" value="{$item['id']}" <?=$item['privacy']?'disabled':''?> /></td>
    <td><a href="/main/public.php?s=/circle/article/cyid/{$item.cyid}/id/{$item.id}" target="_blank">{$item['title']}</a></td>
    <td>{$item['username']}</td>
    <td>{$item['create_time']}</td>
    <td><?=$item['privacy']==1?'是':'否'?></td>
     <td><a href="admin.php?s=SNSAdmin/toRecommend/type/1/part_id/{$id}/ids/{$item['id']}" onclick="return confirm('确定继续？')">增加到推荐位</a></td>
     </tr>
      </volist>
	   <tr><td colspan="6" style="text-align:left"><div class='yahoo'><?=$nav?></div></td>
       </tr>
	 <tr>
       <td colspan="7" style="text-align:left;">操作:【<a href='' onclick="return checkForm();">添加选中内容到推荐位</a>】【<a href="admin.php?s=SNSAdmin/recommendList/id/{$id}">查看推荐位</a>】</td>
    </tr>
   </table>
   </if>
   
   <if condition="$type eq 2">
   <input type="hidden" name="type" value="2" />
     <table width="100%" border="0" align="center">
   <tr>
     <td colspan="5">&nbsp;</td>
    </tr>
    <tr align="center">
    <th width="53">
    
    <th width="237">会员信息
    
    <th colspan="2">会员介绍
    <th width="99">操作</td>  </tr>
   <if condition="$count gt 0">
    <volist name='list' id='item'>
    <tr>
    <td><p>
      <input name="ids[]"  type="checkbox" value="{$item['uid']}"/>
    </p>	</td>
    <td><img src="{$item['icon']}" />
      <p><a href="/main/public.php?s=/column/index/uid/{$item.uid}" target="_blank">{$item['username']}</a></p></td>
    <td colspan="2">{$item['introduce']}</td>
    <td>&nbsp;&nbsp;<a href="admin.php?s=SNSAdmin/toRecommend/type/2/part_id/{$id}/ids/{$item['uid']}" onclick="return confirm('确定继续？')">增加到推荐位</a></td>
    </tr>
   </volist>
    <tr>
    <td colspan="5">{$nav}</td>
    </tr>
	<tr>
    <td colspan="5"><span style="text-align:left;">操作:【<a href='' onclick="return checkForm();">添加选中内容到推荐位</a>】【<a href="admin.php?s=SNSAdmin/recommendList/id/{$id}">查看推荐位</a>】</span></td>
    </tr></table>
	<else/>
	 <tr><td colspan="5" align="left">无记录
        </td>
	 </tr></table>
	</if>
	</if>
	
	<if condition="$type eq 3">   
   <input type="hidden" name="type" value="3" />
  <table  border="1" align="center">
  <tr align="center">
    <td colspan="6" style="text-align:left"><span style="text-align:left;">操作:【<a href='' onclick="return checkForm();">添加选中内容到推荐位</a>】【<a href="__URL__/recommendList/id/{$id}">查看推荐位</a>】</span></td>
    </tr>
  <tr align="center">
    <th width="57" height="30">选择</td>
    <th width="219">标题</td>
    <th width="154">发布人</td>
    <th width="99">发布时间</td>
    <th width="78">是否保密</td>  
    
    <th width="113">操作
  </tr>
 
      <volist name="list" id="item">
     <tr><td><input name="ids[]"  type="checkbox" value="{$item['did']}" <?=$item['privacy']?'disabled':''?> /></td>
    <td><a href="/main/public.php?s=/column/diaryView/uid/{$item.uid}/did/{$item.did}" target="_blank">{$item['subject']}</a></td>
    <td>{$item['username']}</td>
    <td><?=date('Y-m-d/H:i:s',$item['postdate'])?></td>
    <td><?=$item['privacy']==1?'是':'否'?></td>
     <td><a href="admin.php?s=SNSAdmin/toRecommend/type/1/part_id/{$id}/ids/{$item['did']}" onclick="return confirm('确定继续？')">增加到推荐位</a></td>
     </tr>
      </volist>
	   <tr><td colspan="6" style="text-align:left"><div class='yahoo'><?=$nav?></div></td>
       </tr>
	 <tr>
       <td colspan="7" style="text-align:left;">操作:【<a href='' onclick="return checkForm();">添加选中内容到推荐位</a>】【<a href="admin.php?s=SNSAdmin/recommendList/id/{$id}">查看推荐位</a>】</td>
    </tr>
   </table>
   </if>

   </form>

  </body>
</html>
